package com.lc.damai.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoAction {

    @Value("${spring.application.name}")
    String appName;

    @RequestMapping("/demo")
    public String index(){
        return "当前工程：" +appName;
    }
}
